<template>
  <div class="comparison">
    <div class="table">
      <el-table border
                style="width: 100%"
                :header-cell-style="{
          background: '#0070C0',
          color: '#ffffff',
        }"
                :data="tableData"
                v-loading="tableLoading">
        <el-table-column label="环比增长大颗粒资产TOP100"
                         prop="city"
                         align="center">
          <el-table-column label="号码"
                           prop="accsNbr"
                           align="center"></el-table-column>
          <el-table-column label="产品"
                           prop="prdName"
                           align="center"></el-table-column>
          <el-table-column label="客户"
                           prop="custName"
                           align="center"></el-table-column>
          <el-table-column label="归属"
                           prop="areaName"
                           align="center"></el-table-column>
          <el-table-column label="环比增长(万元)"
                           prop="hb"
                           align="center"></el-table-column>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import { grain } from "@/api/barCode/index";
export default {
  name: "comparison",
  components: {},
  props: {
    form: {
      type: Object,
      default: {},
    },
  },
  data () {
    return {
      tableData: [],
      tableLoading: false,
    };
  },
  created () { },
  mounted () { },
  methods: {
    getList () {
      this.tableLoading = true
      grain({
        acctMonth: this.form.acctMonth,
        type: '1'
      }).then((res) => {
        if (res.code == 200) {
          this.tableLoading = false;
          this.tableData = res.data;
        }
      });
    },
  },
};
</script>

<style scoped lang="scss">
.table {
  display: flex;
}
</style>
